package cn.bdqn.service;

import cn.bdqn.pojo.ItripHotelOrder;

/**
 * 2018/8/29
 */
public interface OrderService {
    /**
     * 查询订单详情
     * @param orderNo
     * @return
     * @throws Exception
     */
    public ItripHotelOrder loadItripHotelOrder(String orderNo) throws Exception;

    /**
     * 订单支付成功
     * @param orderNo
     * @param payType
     * @param tradeNo
     * @throws Exception
     */
    public void  paySuccess(String orderNo, int payType, String tradeNo)throws Exception;

    /**
     * 订单支付失败
     * @param orderNo
     * @param payType
     * @param tradeNo
     * @throws Exception
     */

    public void  payFailed(String orderNo, int payType, String tradeNo)throws Exception;


    /**
     * 判断该订单是否已被处理过（被更新为已支付状态）
     * @param orderNo
     * @return
     * @throws Exception
     */
    public boolean processed(String orderNo) throws Exception;
}
